import { ecs } from "./core/ecs/ECS";
import { CommonUtil } from "./module/common/CommonUtil";
import { dev } from "./module/config/Config";
import { GateServerRootSystem } from "./server/gate/sys/GateServerRootSystem";
import { HallServer } from "./server/hall/HallServer";
import { HallServerRootSystem } from "./server/hall/sys/HallServerRootSystem";


/** 匹配服务器对象 */
export var hs: HallServer = null!

function main() {
    dev();

    CommonUtil.init(new HallServerRootSystem());

    hs = ecs.getEntity<HallServer>(HallServer);
    hs.start()
}

main();